/**
 * @author: zhiqiang
 * @version: 1.0
 * @date: 2022/3/17
 * @description:
 */
package com.lzq.mediator.improved;

public class Coff extends Colleague {
    public Coff(Mediator mediator, String name) {
        super(mediator, name);
        mediator.Register(this, "coff");
    }

    @Override
    public void sendMessage(int state) {
        this.getMediator().getMessage(state, "coff");
    }

    public void startCoff() {
        System.out.println("咖啡机工作");
    }
}
